const getters = {
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  // token: state => state.user.token,
  // avatar: state => state.user.avatar,
  // name: state => state.user.name
  token: (state) => state.user.token,
  name: (state) => state.user.userinfo.username,
  startphoto: (state) => state.user.userinfo.staffPhoto,
  routes: (state) => state.routes.roter,
  // roles: (state) => state.user.userinfo.roles
  roles: (state) => state.user.userinfo.roles
}

export default getters
